import request from '@/utils/request';

export async function GetMenuByPage(params: any) {
  return request('/api/system/getMenuByPage', {
    method: 'POST',
    data: params,
  });
}

export async function GetMenuTree() {
  return request('/api/system/getMenuTree', {
    method: 'POST',
    // data: params,
  });
}

export async function AddMenu(params: any) {
  return request('/api/system/addMenu', {
    method: 'POST',
    data: params,
  });
}

export async function updateMenu(params: any) {
  return request('/api/system/updateMenu', {
    method: 'POST',
    data: params,
  });
}

export async function DelMenu(params: any) {
  return request('/api/system/delMenu', {
    method: 'POST',
    data: params,
  });
}
